#include "tests_pch.h"
#include <maths/matrix.h>

using namespace black;

SUITE( mat3x3_128 )
{
	TEST( transpose )
	{
		mat3x3_128 m1( 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f );
		mat3x3_128 m2( 1.f, 4.f, 7.f, 2.f, 5.f, 8.f, 3.f, 6.f, 9.f );

		m1.transpose();

		CHECK( m1 == m2 );
	}

	TEST( transposesse )
	{
		mat3x3_128 m1( 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f );
		mat3x3_128 m2( 1.f, 4.f, 7.f, 2.f, 5.f, 8.f, 3.f, 6.f, 9.f );

		m1.transposesse();

		CHECK( m1 == m2 );
	}
}